package com.smart.adapter.impl;

import com.smart.enums.ChannelType;
import com.smart.service.ChannelService;

public class PhoneChannelAdapter implements ChannelService {
    @Override
    public String processMessage(String payload, ChannelType channelType) {
        // 电话渠道消息处理逻辑
        return "[Phone] Processed: " + payload;
    }

    @Override
    public String createSession(ChannelType channelType) {
        // 创建电话会话逻辑
        return "PHONE-" + System.currentTimeMillis();
    }

    @Override
    public void closeSession(String sessionId) {
        // 关闭电话会话逻辑
        System.out.println("Closing phone session: " + sessionId);
    }
}